package com.xinqi.modules.chat.chat.chat.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.chat.chat.chat.domain.ChatTranRecordEntity;
import com.xinqi.modules.chat.chat.group.dto.req.ChatTranRecordCreateDTO;
import com.xinqi.modules.chat.chat.group.dto.rsp.ChatTranRecordResultDTO;
import org.mapstruct.Mapper;

/**
 * 转换
 *
 * @author: yyzhen
 * @date: 2023/03/29
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class ChatTranRecordConvert {
    public abstract ChatTranRecordEntity create(ChatTranRecordCreateDTO s);

    public abstract ChatTranRecordResultDTO convert(ChatTranRecordEntity s);
}
